﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InnovTech.Util.Printer
{
    public class PrinterException: Exception
    {

        public PrinterException(string printerName)
        {
            PrinterName = printerName;
        }

        public override string Message
        {
            get
            {
                return GetExceptionMessage(PrinterName);
            }
        }

        protected virtual string GetExceptionMessage(string printerName)
        {
            return "An Exception is occured while manipulating the given printer \"" + PrinterName + "\"";
        }

        public string PrinterName
        {
            get;
            set;
        }
    }
}
